//
//  FTPresenter.h
//  FTPicker
//
//  Created by JackieYip on 2017/6/9.
//  Copyright © 2017年 mondial-d. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol FTPresenterDelegate;

@interface FTPresenter : NSObject
@property (nonatomic, weak) id <FTPresenterDelegate> delegate;
@property (nonatomic) CGFloat minContentHeight;
@property (nonatomic) CGFloat maxContentHeight;
@property (nonatomic) UIView *containerView;
@property (nonatomic, readonly) BOOL visible;
- (instancetype)initWithoutMaskView;
- (void)present;
- (void)dismiss;
@end

@protocol FTPresenterDelegate <NSObject>
@optional
- (NSString *)titleForPresenter:(FTPresenter *)presenter;
- (UIView *)contentViewInPresenter:(FTPresenter *)presenter;
- (void)presenterWillDismiss:(FTPresenter *)presenter;
- (void)presenterDidDismiss:(FTPresenter *)presenter;

@end
